package org.mall.convert.order;

import org.mall.modules.order.entity.OrderCommentDO;
import org.mall.modules.order.entity.OrderDO;
import org.mall.modules.pojo.order.bo.OrderCommentInfoBO;
import org.mall.modules.pojo.order.bo.OrderCommentStateInfoPageBO;
import org.mall.modules.pojo.order.bo.OrderCommentTimeOutBO;
import org.mall.modules.pojo.order.bo.OrdersBO;
import org.mall.modules.pojo.order.dto.OrderCommentCreateDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 *
 * 订单评论 convert
 *
 * @author wtz
 * @time 2019-05-31 18:30
 */
@Mapper
public interface OrderCommentConvert {

    OrderCommentConvert INSTANCE = Mappers.getMapper(OrderCommentConvert.class);
    @Mappings({})
    List<OrdersBO> converTB(List<OrderDO> exampleList);
    @Mappings({})
    OrderCommentStateInfoPageBO.OrderCommentStateInfoItem convertOrderCommentStateInfoItem(OrderCommentDO orderCommentDO);

    @Mappings({})
    List<OrderCommentStateInfoPageBO.OrderCommentStateInfoItem> convertOrderCommentStateInfoItems(List<OrderCommentDO> orderCommentDOList);

    @Mappings({})
    OrderCommentDO convertOrderCommentDO(OrderCommentCreateDTO orderCommentCreateDTO);


    @Mappings({})
    OrderCommentInfoBO convertOrderCommentInfoBO(OrderCommentDO orderCommentDO);

    @Mappings({})
    OrderCommentTimeOutBO convertOrderCommentTimeOutBO(OrderCommentDO orderCommentDO);

    @Mappings({})
    List<OrderCommentTimeOutBO> convertOrderCommentTimeOutBOList(List<OrderCommentDO> orderCommentDOList);



}
